package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-13
 */
@TableName("my_gpc_history")
public class MyGpcHistory extends Model<MyGpcHistory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("g_userid")
    private Integer gUserid;
    @TableField("g_scode")
    private String gScode;
    @TableField("g_buy_date")
    private Date gBuyDate;
    @TableField("g_seller_date")
    private Date gSellerDate;
    @TableField("g_cc_status")
    private Long gCcStatus;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getgUserid() {
        return gUserid;
    }

    public void setgUserid(Integer gUserid) {
        this.gUserid = gUserid;
    }

    public String getgScode() {
        return gScode;
    }

    public void setgScode(String gScode) {
        this.gScode = gScode;
    }

    public Date getgBuyDate() {
        return gBuyDate;
    }

    public void setgBuyDate(Date gBuyDate) {
        this.gBuyDate = gBuyDate;
    }

    public Date getgSellerDate() {
        return gSellerDate;
    }

    public void setgSellerDate(Date gSellerDate) {
        this.gSellerDate = gSellerDate;
    }

    public Long getgCcStatus() {
        return gCcStatus;
    }

    public void setgCcStatus(Long gCcStatus) {
        this.gCcStatus = gCcStatus;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MyGpcHistory{" +
        "id=" + id +
        ", gUserid=" + gUserid +
        ", gScode=" + gScode +
        ", gBuyDate=" + gBuyDate +
        ", gSellerDate=" + gSellerDate +
        ", gCcStatus=" + gCcStatus +
        "}";
    }
}
